home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 11
/
64er_Magazin_Sonderheft_11_86-11_1986_Markt__Technik_de_Side_B.d64
/
aktiv filter
(
.txt
)
next >
Wrap
Commodore BASIC
|
2022-10-26
|
2KB
|
64 lines
100 rem berechnung von aktiven filtern
110 pi=3.1415926536
120 print"[147]"chr$(14)tab(5)"[194]erechnung von aktiven [198]iltern"
130 print" [212][146]iefpass, [200][146]ochpass oder [194][146]andpass ?"
140 geta$:ifa$=""then140
150 ifa$="t"then1000
160 ifa$="h"then2000
170 ifa$="b"then3000
180 goto140
1000 rem berechnung tiefpass
1010 print"[147][212]iefpass:":print
1020 input"[199]renzfrequenz [k[200]z]:";fo
1030 input"[214]erstaerkung :";v
1040 input"[203]ondensator [195]2 [n[198]]:";c2
1050 print
1060 fo=fo*10^3:c2=c2*10^(-9):v=int(v)
1070 r1=(sqr(2)/(4*pi*fo*c2*v))
1080 print"[215]iderstand [210]1 :";int(r1);"[207]hm"
1090 r2=int(v*r1/v+1)
1100 print"[215]iderstand [210]2 :";int(r2);"[207]hm"
1110 r3=v*r1
1120 print"[215]iderstand [210]3 :";int(r3);"[207]hm"
1130 c1=2*c2*(v+1)*10^9:c2=c2*10^9
1140 print"[203]ondensator [195]1 :";c1;"n[198]"
1150 print"[203]ondensator [195]2 :";c2;"n[198]"
1160 goto4000
2000 rem berechnung hochpass
2010 print"[147][200]ochpass:":print
2020 input"[199]renzfrequenz [k[200]z]:";fo
2030 input"[214]erstaerkung :";v
2040 input"[203]ondensatoren [195]1=[195]2 [n[198]]:";c1
2050 print
2060 fo=fo*10^3:c1=c1*10^(-9):c2=c1:v=int(v)
2070 r1=int(sqr(2)/(2*pi*fo*c1*(2+1/v)))
2080 print"[215]iderstand [210]1 :";r1;"[207]hm"
2090 r2=int((v+1)/(sqr(2)*pi*fo*c1))
2100 print"[215]iderstand [210]2 :";r2;"[207]hm"
2110 c3=(c2/v)*10^9:c1=c1*10^9
2120 print"[203]ondensator [195]1 :";c1;"n[198]"
2130 print"[203]ondensator [195]1 :";c1;"n[198]"
2140 print"[203]ondensator [195]3 :";c3;"n[198]"
2150 goto4000
3000 rem berechnung bandpass
3010 print"[147][194]andpass:":print
3020 input"[205]ittenfrequenz [k[200]z]:";fo
3030 input"[194]andbreite :";b
3040 input"[214]erstaerkung :";v
3050 input"[203]ondensatoren [195]1=[195]2 [n[198]]:";c1
3060 print
3070 fo=fo*10^3:c1=c1*10^(-9):c2=c1:v=int(v)
3080 r1=int(1/(2*pi*c1*b*v))
3090 print"[215]iderstand [210]1 :";r1;"[207]hm"
3100 r2=int(1/(((2*fo^2)/b^2-v)*2*pi*c1*b))
3110 print"[215]iderstand [210]2 :";r2;"[207]hm"
3120 r3=int(1/(pi*c1*b))
3130 print"[215]iderstand [210]3 :";r3;"[207]hm"
3140 c1=c1*10^9
3150 print"[203]ondensator [195]1 :";c1;"n[198]"
3160 print"[203]ondensator [195]2 :";c1;"n[198]"
4000 print"[215]ollen [211]ie neue [215]erte eingeben ([202]/[206]) ?"
4010 geta$:ifa$=""then4010
4020 ifa$="j"thenrun
4030 end